package com.treasure.mall.biz.service.core.order;

import com.treasure.mall.biz.entity.order.SubOrderLogPO;
import com.treasure.mall.zbq.common.ienum.order.OrderEnums;
import org.springframework.scheduling.annotation.Async;

import java.util.List;

/**
 * @author allan
 * @date 2019-10-26
 */
public interface SubOrderLogService {
    /**
     * 日志
     *
     * @param subOrderId
     * @param operation
     * @param operatorId
     * @param operatorName
     */
    @Async
    void log(String subOrderId, OrderEnums.Operation operation, Long operatorId, String operatorName);

    /**
     * 根据订单得到日志
     *
     * @param subOrderId
     * @return
     */
    List<SubOrderLogPO> findByOrderId(String subOrderId);
}
